Optimal. Leaf size=35 \[ \frac {3 \tanh ^{-1}(\sin (x))}{8 a}+\frac {\tan (x) \sec ^3(x)}{4 a}+\frac {3 \tan (x) \sec (x)}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {3175, 3768, 3770} \[ \frac {3 \tanh ^{-1}(\sin (x))}{8 a}+\frac {\tan (x) \sec ^3(x)}{4 a}+\frac {3 \tan (x) \sec (x)}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \frac {\sec ^3(x)}{a-a \sin ^2(x)} \, dx &=\frac {\int \sec ^5(x) \, dx}{a}\\ &=\frac {\sec ^3(x) \tan (x)}{4 a}+\frac {3 \int \sec ^3(x) \, dx}{4 a}\\ &=\frac {3 \sec (x) \tan (x)}{8 a}+\frac {\sec ^3(x) \tan (x)}{4 a}+\frac {3 \int \sec (x) \, dx}{8 a}\\ &=\frac {3 \tanh ^{-1}(\sin (x))}{8 a}+\frac {3 \sec (x) \tan (x)}{8 a}+\frac {\sec ^3(x) \tan (x)}{4 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 61, normalized size = 1.74 \[ \frac {\frac {1}{2} (11 \sin (x)+3 \sin (3 x)) \sec ^4(x)-6 \log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+6 \log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )}{16 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 46, normalized size = 1.31 \[ \frac {3 \, \cos \relax (x)^{4} \log \left (\sin \relax (x) + 1\right ) - 3 \, \cos \relax (x)^{4} \log \left (-\sin \relax (x) + 1\right ) + 2 \, {\left (3 \, \cos \relax (x)^{2} + 2\right )} \sin \relax (x)}{16 \, a \cos \relax (x)^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 47, normalized size = 1.34 \[ \frac {3 \, \log \left (\sin \relax (x) + 1\right )}{16 \, a} - \frac {3 \, \log \left (-\sin \relax (x) + 1\right )}{16 \, a} - \frac {3 \, \sin \relax (x)^{3} - 5 \, \sin \relax (x)}{8 \, {\left (\sin \relax (x)^{2} - 1\right )}^{2} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.22, size = 66, normalized size = 1.89 \[ \frac {1}{16 a \left (-1+\sin \relax (x )\right )^{2}}-\frac {3}{16 a \left (-1+\sin \relax (x )\right )}-\frac {3 \ln \left (-1+\sin \relax (x )\right )}{16 a}-\frac {1}{16 a \left (1+\sin \relax (x )\right )^{2}}-\frac {3}{16 a \left (1+\sin \relax (x )\right )}+\frac {3 \ln \left (1+\sin \relax (x )\right )}{16 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 51, normalized size = 1.46 \[ -\frac {3 \, \sin \relax (x)^{3} - 5 \, \sin \relax (x)}{8 \, {\left (a \sin \relax (x)^{4} - 2 \, a \sin \relax (x)^{2} + a\right )}} + \frac {3 \, \log \left (\sin \relax (x) + 1\right )}{16 \, a} - \frac {3 \, \log \left (\sin \relax (x) - 1\right )}{16 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.88, size = 31, normalized size = 0.89 \[ \frac {3\,\mathrm {atanh}\left (\sin \relax (x)\right )}{8\,a}+\frac {3\,\sin \relax (x)}{8\,a\,{\cos \relax (x)}^2}+\frac {\sin \relax (x)}{4\,a\,{\cos \relax (x)}^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {\int \frac {\sec ^{3}{\relax (x )}}{\sin ^{2}{\relax (x )} - 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________